<?php
/*

License http://fdcore.ru/license.html

by FDCore Studio

2010 - 2011

*/

@session_start();
if(isset($_SESSION['attept']) && $_SESSION['attept']>5) die('попытка взлома !');
$pathinfo = pathinfo(__FILE__);
define('ROOT', $pathinfo['dirname'].DIRECTORY_SEPARATOR);

require(ROOT.'vendor/Smarty3/libs/Smarty.class.php');

include_once(ROOT.'config/config.php');
require_once(ROOT.'class/db_mssql.class.php');
//require_once(ROOT.'class/function.php');
require_once(ROOT.'class/api.class.php');
require_once(ROOT.'class/controller.php');
require_once(ROOT.'class/helper.php');
require_once(ROOT.'class/model.php');

# активация проверки XSS
helper::db_mssql_check_xss();
helper::check_sql_inject();

$office = new office;
$office->index();
exit();
?>